﻿@model DHQGHN.DAL.Models.TDT.Address

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutBusiness.cshtml";
}

<h2>Chi tiết</h2>

<div align="center">
	<hr />
    <table>
        <tr>
            <td align="left">@Html.Label("Mã quốc gia", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.CountryID)</td>
            <td></td>
            <td>@Html.Label("Địa chỉ chi tiết", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.Descriptions)</td>
            <td></td>
        </tr>
        <tr>
            <td align="left">@Html.Label("Mã hành chính", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.AdminisUnitExtID)</td>
            <td></td>
            <td>@Html.Label("Đã xóa ?", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.Deleted)</td>
            <td></td>
        </tr>
        <tr>
            <td align="left">@Html.Label("Mã bưu chính", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.Code)</td>
            <td></td>
            <td>@Html.Label("Ngày bắt đầu", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.StartDate)</td>
            <td></td>
        </tr>
        <tr>
            <td align="left">@Html.Label("Tên nhà", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.Name)</td>
            <td></td>
            <td>@Html.Label("Ngày kết thúc", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.EndDate)</td>
            <td></td>
        </tr>
        <tr>
            <td align="left">@Html.Label("Kinh độ", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.GPSLongITude)</td>
            <td></td>
            <td>@Html.Label("Lần sửa cuối", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.LastUpdated)</td>
            <td></td>
        </tr>
        <tr>
            <td align="left">@Html.Label("Vĩ độ", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.GPSLatITude)</td>
            <td></td>
            <td>@Html.Label("Số lần sửa", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.RecodeCount)</td>
            <td></td>
        </tr>
        <tr>
            <td align="left">@Html.Label("Sai số", new { @class = "control-label col-md-2" })</td>
            <td>@Html.DisplayNameFor(model => model.GPSWrongNumber)</td>
            <td></td>
        </tr>
    </table>
    <style>
        table {
            width: 45%;
            border: 1px solid #000;
        }

        th, td {
            width: 30%;
            width: auto;
            vertical-align: top;
            border: 0px solid #000;
            border-collapse: collapse;
            padding: 0.3em;
            caption-side: bottom;
        }

        caption {
            padding: 0.3em;
        }
    </style>
    <br />
    <div class="col-md-offset-2 col-md-10">
        <input type="button" onclick="@Html.ActionLink("Chỉnh sửa", "Edit", new { AddressID = Model.AddressID })">
        <a href="../Home/QuanLyBangKe"><input type="button" value="Quay lai" /></a>
    </div>
</div>

